/*=========================================
Title:  slovakia.do
Author: Mitchell Hoffman
Purpose: Read Slovakia data, tabulate ocp status 
=========================================*/


clear
set more off

cd "C:\Users\Mitch"

insheet using "slovakia.csv"

count if octype=="Resistance" & pwoctype!="Resistance" & pwoctype!=""

gen ocstatus = ""
replace ocstatus = "agrforestfish" if octype=="Farming" | octype=="Forestry" | octype=="Fishing"
replace ocstatus = "minmancommtrandmst" if octype=="Mining" | octype=="Manufacturing" | octype=="Commerce" | octype=="Transportation" | octype=="Domestic"
replace ocstatus = "proflibpubserv" if octype == "Liberal Profession" | octype =="Public Service" | octype=="Public Servant" | octype=="Education" 

replace ocstatus = "agrforestfish"  if octype=="Farming, Commerce"

label var  obs "Observation number"
label var year "Year recognized as Righteous Among the Nations"
label var names "Names of rescuers in family"
label var name "Rescuer name"
label var person "Man woman or child"
label var occupation "Occupation"
label var octype "Occupation type"
label var pwoccupation "Occupation before the war"
label var pwoctype "Occupation type before the war"
label var ocstatus "Occupational status"

tab ocstatus if person=="Man" | person=="Woman"
